﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AlgorithmsTest
{
    public static class Helper
    {
        /// <summary>
        /// 判断是否相等
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="target">目标值</param>
        /// <param name="result">实际值</param>
        public static void uNitAreEqual<T>(T target, T result)
        {
            Microsoft.VisualStudio.TestTools.UnitTesting.Assert.AreEqual(Newtonsoft.Json.JsonConvert.SerializeObject(target), Newtonsoft.Json.JsonConvert.SerializeObject(result));
        }
    }
}
